<include file="public:head" />
   <!-- 主体开始 -->
<div class="fly-panel fly-column">
  <div class="layui-container">
    <ul class="layui-clear">
      <li <if condition="$cid eq ''"> class="layui-hide-xs layui-this"</if>><a href="{:U('forum/index')}" class="forumnav">论坛首页</a></li> 
      <volist name='forum_cate' id="vo">
        <li <if condition="$vo['id'] eq $cid"> class="layui-hide-xs layui-this"</if>><a href="{:U('forum/forumdisplay',array('cid'=>$vo['id']))}" class="forumnav">{$vo.name}</a></li>  
      </volist>
      <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><span class="fly-mid"></span></li>
      <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><a href="{:U('ucenter/forum_fa')}">我发表的贴</a></li>
    </ul> 
    
    <div class="fly-column-right layui-hide-xs"> 
      <span class="fly-search"><i class="layui-icon"></i></span> 
      <a href="{:U('doc/doc_share')}" class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe681;</i> 上传文档</a> 
    </div> 
  </div>
</div>

<div class="layui-container">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-md8">
       

      <div class="fly-panel" style="margin-bottom: 0;">
        
        <div class="fly-panel-title fly-filter">
           <a href="{:U('forumdisplay',array('cid'=>$cid,'ord'=>'newest'))}" <if condition="($ord eq 'add_time desc') OR ($ord eq '') ">class="layui-this"</if>>按最新</a>
          <span class="fly-mid"></span>
          <a href="{:U('forumdisplay',array('cid'=>$cid,'ord'=>'hottest'))}" <if condition="$ord eq 'hits desc'">class="layui-this"</if>>按热议</a>
        </div>
        <ul class="fly-forum-list">     
          <empty name="forumlist">
            <div class="fly-none">没有相关数据</div>
          </empty>
          <volist name="forumlist" id="vo">     
          <li>
            <a href="{:U('member/mydoclist',array('uid'=>$vo['uid']))}" class="fly-forum-avatar">
              <img src="{:C('wkcms_site_url')}{$vo['uid']|getavatar}">
            </a>
            <h2>
              <a href="{:U('forum/viewthread',array('id'=>$vo['id']))}">{$vo.title}</a>
            </h2>
            <div class="fly-forum-list-info">
              <a href="{:U('member/mydoclist',array('uid'=>$vo['uid']))}" link>
                <cite>{$vo.uid|getusername}</cite>
              </a>
              <span>{$vo.add_time|fdate}</span>
              <span class="fly-forum-nums"> 
                <i class="iconfont icon-liulanyanjing"></i> {$vo.hits}
                <i class="iconfont icon-pinglun1" title="回复"></i>{$vo.comcount}
              </span>
            </div>
            <div class="fly-forum-list-badge">
              <if condition="$vo['top'] eq 1"><span class="layui-badge layui-bg-red zhiding">置顶</span></if>
              <if condition="$vo['jing'] eq 1"><span class="layui-badge layui-bg-red jinghua">精帖</span></if>
            </div>
          </li>
        </volist>
           
        </ul>
        <div style="text-align: center">
          <div class="laypage-main">
            {$page}
          </div>
        </div>

      </div>
    </div>
    <div class="layui-col-md4">
       
      <div class="fly-panel">
        <div class="fly-forum-main">
          <a href="{:U('ucenter/forum_add')}" target="_blank" class="layui-btn layui-btn-fluid layui-btn-danger" >发表新帖</a>
          <!-- <div style="text-align: center;padding: 15px; margin-top: 5px;">
            <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><a href="#">我发表的贴</a></li> 
            <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><span class="fly-mid"></span></li>
            <li class="layui-hide-xs layui-hide-sm layui-show-md-inline-block"><a href="#">我回复的贴</a></li> 
          </div> -->
        </div>
      </div>

      <div class="fly-panel fly-rank fly-rank-reply" id="LAY_replyRank">
        <h3 class="fly-panel-title">发贴总榜</h3>
        <empty name="fBang">
            <div class="fly-none">没有相关数据</div>
        </empty>
        <dl>
          <volist name='fBang' id="vo">
          <dd>
            <a href="{:U('member/mydoclist',array('uid'=>$vo['uid']))}">
              <img src="{:C('wkcms_site_url')}{$vo['uid']|getavatar}"><cite>{$vo.uid|getusername}</cite><i>{$vo['count(uid)']}次回答</i>
            </a>
          </dd>
          </volist>
        </dl>
      </div>

      <dl class="fly-panel fly-list-one">
        <dt class="fly-panel-title">本月热帖</dt>
        <empty name="zhoulist">
            <div class="fly-none">没有相关数据</div>
        </empty>
        <volist name='zhoulist' id="vo">
        <dd>
          <a href="{:U('forum/viewthread',array('id'=>$vo['id']))}">{$vo.title}</a>
          <span><i class="iconfont icon-liulanyanjing"></i> {$vo.hits}</span>
        </dd>
        </volist>
      </dl>

       <!-- 广告 -->
       
      <!-- 广告结束 -->
      
      <include file="public:flink" />

    </div>
  </div>
</div>
   <!-- 主体结束 -->
<include file="public:footer" />
  
<script>
layui.config({
  version: "3.0.0"
  ,base: '__PUBLIC__/theme/blueideal/mods/' //这里实际使用时，建议改成绝对路径
}).extend({
  fly: 'index'
}).use('fly');
</script>
